<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>  </title>
</head>
<body>
    
</body>

<script>
    console.log("吃饭");
    console.log("睡觉");
    console.log("打豆豆");

    var gender = "男";
    if(gender == "女"){
        // console.log("女士，上午好！");
    }else{
        console.log("先生，上午好！");
    }

    var names = ["张三", "李四", "王五"];
    for(var i = 0; i < names.length; i++){
        console.log(names[i]);
    }

</script>
</html>